import { memo } from 'react';
import { Form, Input, Select, Space } from 'antd';

const FormItems = memo(() => {
  return (
    <>
      <Form.Item name="name" label="批次名称">
        <Input placeholder="请输入名称" />
      </Form.Item>
      <Form.Item name="businessType" label="导入方式">
        <Select disabled defaultValue={1} options={[{ value: 1, label: '离线发布' }]} />
      </Form.Item>
      <Form.Item label="选择档案库">
        <Space wrap>
          <Form.Item name="receiveMode" noStyle>
            <Select placeholder="请选择全宗" options={[{ value: 0, label: 'bar' }]} />
          </Form.Item>
          <Form.Item name="receiveType" noStyle>
            <Select placeholder="请选择" options={[{ value: 1, label: 'aaa' }]} />
          </Form.Item>
        </Space>
      </Form.Item>
      <Form.Item name="transferUnit" label="来源部门">
        <Input placeholder="请输入来源部门" />
      </Form.Item>
    </>
  );
});

export default FormItems;
